﻿<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
  
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>Class MathHelper
   </title>
    <meta name="viewport" content="width=device-width">
    <meta name="title" content="Class MathHelper
   ">
    <meta name="generator" content="docfx 2.56.4.0">
    
    <link rel="shortcut icon" href="../favicon.ico">
    <link rel="stylesheet" href="../styles/docfx.vendor.css">
    <link rel="stylesheet" href="../styles/docfx.css">
    <link rel="stylesheet" href="../styles/main.css">
    <meta property="docfx:navrel" content="../toc.html">
    <meta property="docfx:tocrel" content="toc.html">
    
    
    
  </head>
  <body data-spy="scroll" data-target="#affix" data-offset="120">
    <div id="wrapper">
      <header>
        
        <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
          <div class="container">
            <div class="navbar-header">
              <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
              </button>
              
              <a class="navbar-brand" href="../index.html">
                <img id="logo" class="svg" src="../logo.svg" alt="">
              </a>
            </div>
            <div class="collapse navbar-collapse" id="navbar">
              <form class="navbar-form navbar-right" role="search" id="search">
                <div class="form-group">
                  <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
                </div>
              </form>
            </div>
          </div>
        </nav>
        
        <div class="subnav navbar navbar-default">
          <div class="container hide-when-search" id="breadcrumb">
            <ul class="breadcrumb">
              <li></li>
            </ul>
          </div>
        </div>
      </header>
      <div role="main" class="container body-content hide-when-search">
        
        <div class="sidenav hide-when-search">
          <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
          <div class="sidetoggle collapse" id="sidetoggle">
            <div id="sidetoc"></div>
          </div>
        </div>
        <div class="article row grid-right">
          <div class="col-md-10">
            <article class="content wrap" id="_content" data-uid="netDxf.MathHelper">
  
  
  <h1 id="netDxf_MathHelper" data-uid="netDxf.MathHelper" class="text-break">Class MathHelper
  </h1>
  <div class="markdown level0 summary"><p>Utility math functions and constants.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><span class="xref">System.Object</span></div>
    <div class="level1"><span class="xref">MathHelper</span></div>
  </div>
  <div class="inheritedMembers">
    <h5>Inherited Members</h5>
    <div>
      <span class="xref">System.Object.Equals(System.Object)</span>
    </div>
    <div>
      <span class="xref">System.Object.Equals(System.Object, System.Object)</span>
    </div>
    <div>
      <span class="xref">System.Object.GetHashCode()</span>
    </div>
    <div>
      <span class="xref">System.Object.GetType()</span>
    </div>
    <div>
      <span class="xref">System.Object.MemberwiseClone()</span>
    </div>
    <div>
      <span class="xref">System.Object.ReferenceEquals(System.Object, System.Object)</span>
    </div>
    <div>
      <span class="xref">System.Object.ToString()</span>
    </div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="netDxf.html">netDxf</a></h6>
  <h6><strong>Assembly</strong>: CADability.dll</h6>
  <h5 id="netDxf_MathHelper_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static class MathHelper</code></pre>
  </div>
  <h3 id="fields">Fields
  </h3>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=netDxf_MathHelper_DegToGrad.md&amp;value=---%0Auid%3A%20netDxf.MathHelper.DegToGrad%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/DXF/MathHelper.cs/#L48">View Source</a>
  </span>
  <h4 id="netDxf_MathHelper_DegToGrad" data-uid="netDxf.MathHelper.DegToGrad">DegToGrad</h4>
  <div class="markdown level1 summary"><p>Constant to transform an angle between degrees and gradians.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public const double DegToGrad = 1.1111111111111112</code></pre>
  </div>
  <h5 class="fieldValue">Field Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=netDxf_MathHelper_DegToRad.md&amp;value=---%0Auid%3A%20netDxf.MathHelper.DegToRad%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/DXF/MathHelper.cs/#L38">View Source</a>
  </span>
  <h4 id="netDxf_MathHelper_DegToRad" data-uid="netDxf.MathHelper.DegToRad">DegToRad</h4>
  <div class="markdown level1 summary"><p>Constant to transform an angle between degrees and radians.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public const double DegToRad = 0.017453292519943295</code></pre>
  </div>
  <h5 class="fieldValue">Field Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=netDxf_MathHelper_GradToDeg.md&amp;value=---%0Auid%3A%20netDxf.MathHelper.GradToDeg%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/DXF/MathHelper.cs/#L53">View Source</a>
  </span>
  <h4 id="netDxf_MathHelper_GradToDeg" data-uid="netDxf.MathHelper.GradToDeg">GradToDeg</h4>
  <div class="markdown level1 summary"><p>Constant to transform an angle between degrees and gradians.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public const double GradToDeg = 0.9</code></pre>
  </div>
  <h5 class="fieldValue">Field Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=netDxf_MathHelper_HalfPI.md&amp;value=---%0Auid%3A%20netDxf.MathHelper.HalfPI%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/DXF/MathHelper.cs/#L58">View Source</a>
  </span>
  <h4 id="netDxf_MathHelper_HalfPI" data-uid="netDxf.MathHelper.HalfPI">HalfPI</h4>
  <div class="markdown level1 summary"><p>PI/2 (90 degrees)</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public const double HalfPI = 1.5707963267948966</code></pre>
  </div>
  <h5 class="fieldValue">Field Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=netDxf_MathHelper_PI.md&amp;value=---%0Auid%3A%20netDxf.MathHelper.PI%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/DXF/MathHelper.cs/#L63">View Source</a>
  </span>
  <h4 id="netDxf_MathHelper_PI" data-uid="netDxf.MathHelper.PI">PI</h4>
  <div class="markdown level1 summary"><p>PI (180 degrees)</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public const double PI = 3.1415926535897931</code></pre>
  </div>
  <h5 class="fieldValue">Field Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=netDxf_MathHelper_RadToDeg.md&amp;value=---%0Auid%3A%20netDxf.MathHelper.RadToDeg%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/DXF/MathHelper.cs/#L43">View Source</a>
  </span>
  <h4 id="netDxf_MathHelper_RadToDeg" data-uid="netDxf.MathHelper.RadToDeg">RadToDeg</h4>
  <div class="markdown level1 summary"><p>Constant to transform an angle between degrees and radians.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public const double RadToDeg = 57.295779513082323</code></pre>
  </div>
  <h5 class="fieldValue">Field Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=netDxf_MathHelper_ThreeHalfPI.md&amp;value=---%0Auid%3A%20netDxf.MathHelper.ThreeHalfPI%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/DXF/MathHelper.cs/#L68">View Source</a>
  </span>
  <h4 id="netDxf_MathHelper_ThreeHalfPI" data-uid="netDxf.MathHelper.ThreeHalfPI">ThreeHalfPI</h4>
  <div class="markdown level1 summary"><p>3*PI/2 (270 degrees)</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public const double ThreeHalfPI = 4.71238898038469</code></pre>
  </div>
  <h5 class="fieldValue">Field Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=netDxf_MathHelper_TwoPI.md&amp;value=---%0Auid%3A%20netDxf.MathHelper.TwoPI%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/DXF/MathHelper.cs/#L73">View Source</a>
  </span>
  <h4 id="netDxf_MathHelper_TwoPI" data-uid="netDxf.MathHelper.TwoPI">TwoPI</h4>
  <div class="markdown level1 summary"><p>2*PI (360 degrees)</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public const double TwoPI = 6.2831853071795862</code></pre>
  </div>
  <h5 class="fieldValue">Field Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
  </h3>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=netDxf_MathHelper_Epsilon.md&amp;value=---%0Auid%3A%20netDxf.MathHelper.Epsilon%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/DXF/MathHelper.cs/#L87">View Source</a>
  </span>
  <a id="netDxf_MathHelper_Epsilon_" data-uid="netDxf.MathHelper.Epsilon*"></a>
  <h4 id="netDxf_MathHelper_Epsilon" data-uid="netDxf.MathHelper.Epsilon">Epsilon</h4>
  <div class="markdown level1 summary"><p>Represents the smallest number used for comparison purposes.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static double Epsilon { get; set; }</code></pre>
  </div>
  <h5 class="propertyValue">Property Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 id="netDxf_MathHelper_Epsilon_remarks">Remarks</h5>
  <div class="markdown level1 remarks"><p>The epsilon value must be a positive number greater than zero.</p>
</div>
  <h3 id="methods">Methods
  </h3>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=netDxf_MathHelper_ArbitraryAxis_netDxf_Vector3_.md&amp;value=---%0Auid%3A%20netDxf.MathHelper.ArbitraryAxis(netDxf.Vector3)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/DXF/MathHelper.cs/#L343">View Source</a>
  </span>
  <a id="netDxf_MathHelper_ArbitraryAxis_" data-uid="netDxf.MathHelper.ArbitraryAxis*"></a>
  <h4 id="netDxf_MathHelper_ArbitraryAxis_netDxf_Vector3_" data-uid="netDxf.MathHelper.ArbitraryAxis(netDxf.Vector3)">ArbitraryAxis(Vector3)</h4>
  <div class="markdown level1 summary"><p>Gets the rotation matrix from the normal vector (extrusion direction) of an entity.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static Matrix3 ArbitraryAxis(Vector3 zAxis)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="netDxf.Vector3.html">Vector3</a></td>
        <td><span class="parametername">zAxis</span></td>
        <td><p>Normal vector.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="netDxf.Matrix3.html">Matrix3</a></td>
        <td><p>Rotation matrix.</p>
</td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=netDxf_MathHelper_FindIntersection_netDxf_Vector2_netDxf_Vector2_netDxf_Vector2_netDxf_Vector2_.md&amp;value=---%0Auid%3A%20netDxf.MathHelper.FindIntersection(netDxf.Vector2%2CnetDxf.Vector2%2CnetDxf.Vector2%2CnetDxf.Vector2)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/DXF/MathHelper.cs/#L469">View Source</a>
  </span>
  <a id="netDxf_MathHelper_FindIntersection_" data-uid="netDxf.MathHelper.FindIntersection*"></a>
  <h4 id="netDxf_MathHelper_FindIntersection_netDxf_Vector2_netDxf_Vector2_netDxf_Vector2_netDxf_Vector2_" data-uid="netDxf.MathHelper.FindIntersection(netDxf.Vector2,netDxf.Vector2,netDxf.Vector2,netDxf.Vector2)">FindIntersection(Vector2, Vector2, Vector2, Vector2)</h4>
  <div class="markdown level1 summary"><p>Calculates the intersection point of two lines.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static Vector2 FindIntersection(Vector2 point0, Vector2 dir0, Vector2 point1, Vector2 dir1)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="netDxf.Vector2.html">Vector2</a></td>
        <td><span class="parametername">point0</span></td>
        <td><p>First line origin point.</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="netDxf.Vector2.html">Vector2</a></td>
        <td><span class="parametername">dir0</span></td>
        <td><p>First line direction.</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="netDxf.Vector2.html">Vector2</a></td>
        <td><span class="parametername">point1</span></td>
        <td><p>Second line origin point.</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="netDxf.Vector2.html">Vector2</a></td>
        <td><span class="parametername">dir1</span></td>
        <td><p>Second line direction.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="netDxf.Vector2.html">Vector2</a></td>
        <td><p>The intersection point between the two lines.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 id="netDxf_MathHelper_FindIntersection_netDxf_Vector2_netDxf_Vector2_netDxf_Vector2_netDxf_Vector2__remarks">Remarks</h5>
  <div class="markdown level1 remarks"><p>If the lines are parallel the method will return a <a class="xref" href="netDxf.Vector2.html#netDxf_Vector2_NaN">NaN</a>.</p>
</div>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=netDxf_MathHelper_FindIntersection_netDxf_Vector2_netDxf_Vector2_netDxf_Vector2_netDxf_Vector2_System_Double_.md&amp;value=---%0Auid%3A%20netDxf.MathHelper.FindIntersection(netDxf.Vector2%2CnetDxf.Vector2%2CnetDxf.Vector2%2CnetDxf.Vector2%2CSystem.Double)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/DXF/MathHelper.cs/#L484">View Source</a>
  </span>
  <a id="netDxf_MathHelper_FindIntersection_" data-uid="netDxf.MathHelper.FindIntersection*"></a>
  <h4 id="netDxf_MathHelper_FindIntersection_netDxf_Vector2_netDxf_Vector2_netDxf_Vector2_netDxf_Vector2_System_Double_" data-uid="netDxf.MathHelper.FindIntersection(netDxf.Vector2,netDxf.Vector2,netDxf.Vector2,netDxf.Vector2,System.Double)">FindIntersection(Vector2, Vector2, Vector2, Vector2, Double)</h4>
  <div class="markdown level1 summary"><p>Calculates the intersection point of two lines.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static Vector2 FindIntersection(Vector2 point0, Vector2 dir0, Vector2 point1, Vector2 dir1, double threshold)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="netDxf.Vector2.html">Vector2</a></td>
        <td><span class="parametername">point0</span></td>
        <td><p>First line origin point.</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="netDxf.Vector2.html">Vector2</a></td>
        <td><span class="parametername">dir0</span></td>
        <td><p>First line direction.</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="netDxf.Vector2.html">Vector2</a></td>
        <td><span class="parametername">point1</span></td>
        <td><p>Second line origin point.</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="netDxf.Vector2.html">Vector2</a></td>
        <td><span class="parametername">dir1</span></td>
        <td><p>Second line direction.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><span class="parametername">threshold</span></td>
        <td><p>Tolerance.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="netDxf.Vector2.html">Vector2</a></td>
        <td><p>The intersection point between the two lines.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 id="netDxf_MathHelper_FindIntersection_netDxf_Vector2_netDxf_Vector2_netDxf_Vector2_netDxf_Vector2_System_Double__remarks">Remarks</h5>
  <div class="markdown level1 remarks"><p>If the lines are parallel the method will return a <a class="xref" href="netDxf.Vector2.html#netDxf_Vector2_NaN">NaN</a>.</p>
</div>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=netDxf_MathHelper_IsEqual_System_Double_System_Double_.md&amp;value=---%0Auid%3A%20netDxf.MathHelper.IsEqual(System.Double%2CSystem.Double)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/DXF/MathHelper.cs/#L185">View Source</a>
  </span>
  <a id="netDxf_MathHelper_IsEqual_" data-uid="netDxf.MathHelper.IsEqual*"></a>
  <h4 id="netDxf_MathHelper_IsEqual_System_Double_System_Double_" data-uid="netDxf.MathHelper.IsEqual(System.Double,System.Double)">IsEqual(Double, Double)</h4>
  <div class="markdown level1 summary"><p>Checks if a number is equal to another.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool IsEqual(double a, double b)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><span class="parametername">a</span></td>
        <td><p>Double precision number.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><span class="parametername">b</span></td>
        <td><p>Double precision number.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><p>True if its close to one or false in any other case.</p>
</td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=netDxf_MathHelper_IsEqual_System_Double_System_Double_System_Double_.md&amp;value=---%0Auid%3A%20netDxf.MathHelper.IsEqual(System.Double%2CSystem.Double%2CSystem.Double)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/DXF/MathHelper.cs/#L197">View Source</a>
  </span>
  <a id="netDxf_MathHelper_IsEqual_" data-uid="netDxf.MathHelper.IsEqual*"></a>
  <h4 id="netDxf_MathHelper_IsEqual_System_Double_System_Double_System_Double_" data-uid="netDxf.MathHelper.IsEqual(System.Double,System.Double,System.Double)">IsEqual(Double, Double, Double)</h4>
  <div class="markdown level1 summary"><p>Checks if a number is equal to another.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool IsEqual(double a, double b, double threshold)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><span class="parametername">a</span></td>
        <td><p>Double precision number.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><span class="parametername">b</span></td>
        <td><p>Double precision number.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><span class="parametername">threshold</span></td>
        <td><p>Tolerance.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><p>True if its close to one or false in any other case.</p>
</td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=netDxf_MathHelper_IsOne_System_Double_.md&amp;value=---%0Auid%3A%20netDxf.MathHelper.IsOne(System.Double)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/DXF/MathHelper.cs/#L142">View Source</a>
  </span>
  <a id="netDxf_MathHelper_IsOne_" data-uid="netDxf.MathHelper.IsOne*"></a>
  <h4 id="netDxf_MathHelper_IsOne_System_Double_" data-uid="netDxf.MathHelper.IsOne(System.Double)">IsOne(Double)</h4>
  <div class="markdown level1 summary"><p>Checks if a number is close to one.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool IsOne(double number)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><span class="parametername">number</span></td>
        <td><p>Double precision number.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><p>True if its close to one or false in any other case.</p>
</td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=netDxf_MathHelper_IsOne_System_Double_System_Double_.md&amp;value=---%0Auid%3A%20netDxf.MathHelper.IsOne(System.Double%2CSystem.Double)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/DXF/MathHelper.cs/#L153">View Source</a>
  </span>
  <a id="netDxf_MathHelper_IsOne_" data-uid="netDxf.MathHelper.IsOne*"></a>
  <h4 id="netDxf_MathHelper_IsOne_System_Double_System_Double_" data-uid="netDxf.MathHelper.IsOne(System.Double,System.Double)">IsOne(Double, Double)</h4>
  <div class="markdown level1 summary"><p>Checks if a number is close to one.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool IsOne(double number, double threshold)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><span class="parametername">number</span></td>
        <td><p>Double precision number.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><span class="parametername">threshold</span></td>
        <td><p>Tolerance.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><p>True if its close to one or false in any other case.</p>
</td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=netDxf_MathHelper_IsZero_System_Double_.md&amp;value=---%0Auid%3A%20netDxf.MathHelper.IsZero(System.Double)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/DXF/MathHelper.cs/#L163">View Source</a>
  </span>
  <a id="netDxf_MathHelper_IsZero_" data-uid="netDxf.MathHelper.IsZero*"></a>
  <h4 id="netDxf_MathHelper_IsZero_System_Double_" data-uid="netDxf.MathHelper.IsZero(System.Double)">IsZero(Double)</h4>
  <div class="markdown level1 summary"><p>Checks if a number is close to zero.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool IsZero(double number)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><span class="parametername">number</span></td>
        <td><p>Double precision number.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><p>True if its close to one or false in any other case.</p>
</td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=netDxf_MathHelper_IsZero_System_Double_System_Double_.md&amp;value=---%0Auid%3A%20netDxf.MathHelper.IsZero(System.Double%2CSystem.Double)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/DXF/MathHelper.cs/#L174">View Source</a>
  </span>
  <a id="netDxf_MathHelper_IsZero_" data-uid="netDxf.MathHelper.IsZero*"></a>
  <h4 id="netDxf_MathHelper_IsZero_System_Double_System_Double_" data-uid="netDxf.MathHelper.IsZero(System.Double,System.Double)">IsZero(Double, Double)</h4>
  <div class="markdown level1 summary"><p>Checks if a number is close to zero.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool IsZero(double number, double threshold)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><span class="parametername">number</span></td>
        <td><p>Double precision number.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><span class="parametername">threshold</span></td>
        <td><p>Tolerance.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><p>True if its close to one or false in any other case.</p>
</td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=netDxf_MathHelper_NormalizeAngle_System_Double_.md&amp;value=---%0Auid%3A%20netDxf.MathHelper.NormalizeAngle(System.Double)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/DXF/MathHelper.cs/#L503">View Source</a>
  </span>
  <a id="netDxf_MathHelper_NormalizeAngle_" data-uid="netDxf.MathHelper.NormalizeAngle*"></a>
  <h4 id="netDxf_MathHelper_NormalizeAngle_System_Double_" data-uid="netDxf.MathHelper.NormalizeAngle(System.Double)">NormalizeAngle(Double)</h4>
  <div class="markdown level1 summary"><p>Normalizes the value of an angle in degrees between [0, 360[.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static double NormalizeAngle(double angle)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><span class="parametername">angle</span></td>
        <td><p>Angle in degrees.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><p>The equivalent angle in the range [0, 360[.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 id="netDxf_MathHelper_NormalizeAngle_System_Double__remarks">Remarks</h5>
  <div class="markdown level1 remarks"><p>Negative angles will be converted to its positive equivalent.</p>
</div>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=netDxf_MathHelper_PointInSegment_netDxf_Vector2_netDxf_Vector2_netDxf_Vector2_.md&amp;value=---%0Auid%3A%20netDxf.MathHelper.PointInSegment(netDxf.Vector2%2CnetDxf.Vector2%2CnetDxf.Vector2)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/DXF/MathHelper.cs/#L443">View Source</a>
  </span>
  <a id="netDxf_MathHelper_PointInSegment_" data-uid="netDxf.MathHelper.PointInSegment*"></a>
  <h4 id="netDxf_MathHelper_PointInSegment_netDxf_Vector2_netDxf_Vector2_netDxf_Vector2_" data-uid="netDxf.MathHelper.PointInSegment(netDxf.Vector2,netDxf.Vector2,netDxf.Vector2)">PointInSegment(Vector2, Vector2, Vector2)</h4>
  <div class="markdown level1 summary"><p>Checks if a point is inside a line segment.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static int PointInSegment(Vector2 p, Vector2 start, Vector2 end)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="netDxf.Vector2.html">Vector2</a></td>
        <td><span class="parametername">p</span></td>
        <td><p>A point.</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="netDxf.Vector2.html">Vector2</a></td>
        <td><span class="parametername">start</span></td>
        <td><p>Segment start point.</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="netDxf.Vector2.html">Vector2</a></td>
        <td><span class="parametername">end</span></td>
        <td><p>Segment end point.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><p>Zero if the point is inside the segment, 1 if the point is after the end point, and -1 if the point is before the start point.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 id="netDxf_MathHelper_PointInSegment_netDxf_Vector2_netDxf_Vector2_netDxf_Vector2__remarks">Remarks</h5>
  <div class="markdown level1 remarks"><p>For testing purposes a point is considered inside a segment,
if it falls inside the area from start to end of the segment that extends infinitely perpendicularly to its direction.
Later, if needed, you can use the PointLineDistance method, if the distance is zero the point is along the line defined by the start and end points.</p>
</div>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=netDxf_MathHelper_PointInSegment_netDxf_Vector3_netDxf_Vector3_netDxf_Vector3_.md&amp;value=---%0Auid%3A%20netDxf.MathHelper.PointInSegment(netDxf.Vector3%2CnetDxf.Vector3%2CnetDxf.Vector3)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/DXF/MathHelper.cs/#L414">View Source</a>
  </span>
  <a id="netDxf_MathHelper_PointInSegment_" data-uid="netDxf.MathHelper.PointInSegment*"></a>
  <h4 id="netDxf_MathHelper_PointInSegment_netDxf_Vector3_netDxf_Vector3_netDxf_Vector3_" data-uid="netDxf.MathHelper.PointInSegment(netDxf.Vector3,netDxf.Vector3,netDxf.Vector3)">PointInSegment(Vector3, Vector3, Vector3)</h4>
  <div class="markdown level1 summary"><p>Checks if a point is inside a line segment.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static int PointInSegment(Vector3 p, Vector3 start, Vector3 end)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="netDxf.Vector3.html">Vector3</a></td>
        <td><span class="parametername">p</span></td>
        <td><p>A point.</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="netDxf.Vector3.html">Vector3</a></td>
        <td><span class="parametername">start</span></td>
        <td><p>Segment start point.</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="netDxf.Vector3.html">Vector3</a></td>
        <td><span class="parametername">end</span></td>
        <td><p>Segment end point.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><p>Zero if the point is inside the segment, 1 if the point is after the end point, and -1 if the point is before the start point.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 id="netDxf_MathHelper_PointInSegment_netDxf_Vector3_netDxf_Vector3_netDxf_Vector3__remarks">Remarks</h5>
  <div class="markdown level1 remarks"><p>For testing purposes a point is considered inside a segment,
if it falls inside the volume from start to end of the segment that extends infinitely perpendicularly to its direction.
Later, if needed, you can use the PointLineDistance method, if the distance is zero the point is along the line defined by the start and end points.</p>
</div>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=netDxf_MathHelper_PointLineDistance_netDxf_Vector2_netDxf_Vector2_netDxf_Vector2_.md&amp;value=---%0Auid%3A%20netDxf.MathHelper.PointLineDistance(netDxf.Vector2%2CnetDxf.Vector2%2CnetDxf.Vector2)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/DXF/MathHelper.cs/#L393">View Source</a>
  </span>
  <a id="netDxf_MathHelper_PointLineDistance_" data-uid="netDxf.MathHelper.PointLineDistance*"></a>
  <h4 id="netDxf_MathHelper_PointLineDistance_netDxf_Vector2_netDxf_Vector2_netDxf_Vector2_" data-uid="netDxf.MathHelper.PointLineDistance(netDxf.Vector2,netDxf.Vector2,netDxf.Vector2)">PointLineDistance(Vector2, Vector2, Vector2)</h4>
  <div class="markdown level1 summary"><p>Calculates the minimum distance between a point and a line.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static double PointLineDistance(Vector2 p, Vector2 origin, Vector2 dir)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="netDxf.Vector2.html">Vector2</a></td>
        <td><span class="parametername">p</span></td>
        <td><p>A point.</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="netDxf.Vector2.html">Vector2</a></td>
        <td><span class="parametername">origin</span></td>
        <td><p>Line origin point.</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="netDxf.Vector2.html">Vector2</a></td>
        <td><span class="parametername">dir</span></td>
        <td><p>Line direction.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><p>The minimum distance between the point and the line.</p>
</td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=netDxf_MathHelper_PointLineDistance_netDxf_Vector3_netDxf_Vector3_netDxf_Vector3_.md&amp;value=---%0Auid%3A%20netDxf.MathHelper.PointLineDistance(netDxf.Vector3%2CnetDxf.Vector3%2CnetDxf.Vector3)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/DXF/MathHelper.cs/#L377">View Source</a>
  </span>
  <a id="netDxf_MathHelper_PointLineDistance_" data-uid="netDxf.MathHelper.PointLineDistance*"></a>
  <h4 id="netDxf_MathHelper_PointLineDistance_netDxf_Vector3_netDxf_Vector3_netDxf_Vector3_" data-uid="netDxf.MathHelper.PointLineDistance(netDxf.Vector3,netDxf.Vector3,netDxf.Vector3)">PointLineDistance(Vector3, Vector3, Vector3)</h4>
  <div class="markdown level1 summary"><p>Calculates the minimum distance between a point and a line.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static double PointLineDistance(Vector3 p, Vector3 origin, Vector3 dir)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="netDxf.Vector3.html">Vector3</a></td>
        <td><span class="parametername">p</span></td>
        <td><p>A point.</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="netDxf.Vector3.html">Vector3</a></td>
        <td><span class="parametername">origin</span></td>
        <td><p>Line origin point.</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="netDxf.Vector3.html">Vector3</a></td>
        <td><span class="parametername">dir</span></td>
        <td><p>Line direction.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><p>The minimum distance between the point and the line.</p>
</td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=netDxf_MathHelper_RotateAboutAxis_netDxf_Vector3_netDxf_Vector3_System_Double_.md&amp;value=---%0Auid%3A%20netDxf.MathHelper.RotateAboutAxis(netDxf.Vector3%2CnetDxf.Vector3%2CSystem.Double)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/DXF/MathHelper.cs/#L530">View Source</a>
  </span>
  <a id="netDxf_MathHelper_RotateAboutAxis_" data-uid="netDxf.MathHelper.RotateAboutAxis*"></a>
  <h4 id="netDxf_MathHelper_RotateAboutAxis_netDxf_Vector3_netDxf_Vector3_System_Double_" data-uid="netDxf.MathHelper.RotateAboutAxis(netDxf.Vector3,netDxf.Vector3,System.Double)">RotateAboutAxis(Vector3, Vector3, Double)</h4>
  <div class="markdown level1 summary"><p>Rotate given vector of angle in radians about a specified axis.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static Vector3 RotateAboutAxis(Vector3 v, Vector3 axis, double angle)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="netDxf.Vector3.html">Vector3</a></td>
        <td><span class="parametername">v</span></td>
        <td><p>Vector to rotate.</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="netDxf.Vector3.html">Vector3</a></td>
        <td><span class="parametername">axis</span></td>
        <td><p>Rotation axis. This vector should be normalized.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><span class="parametername">angle</span></td>
        <td><p>Rotation angle in radians.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="netDxf.Vector3.html">Vector3</a></td>
        <td><p>A copy of the vector, rotated.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 id="netDxf_MathHelper_RotateAboutAxis_netDxf_Vector3_netDxf_Vector3_System_Double__remarks">Remarks</h5>
  <div class="markdown level1 remarks"><p>Method provided by: Idelana. Original Author: Paul Bourke ( <a href="http://paulbourke.net/geometry/rotate/">http://paulbourke.net/geometry/rotate/</a> )</p>
</div>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=netDxf_MathHelper_RoundToNearest_System_Double_System_Double_.md&amp;value=---%0Auid%3A%20netDxf.MathHelper.RoundToNearest(System.Double%2CSystem.Double)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/DXF/MathHelper.cs/#L516">View Source</a>
  </span>
  <a id="netDxf_MathHelper_RoundToNearest_" data-uid="netDxf.MathHelper.RoundToNearest*"></a>
  <h4 id="netDxf_MathHelper_RoundToNearest_System_Double_System_Double_" data-uid="netDxf.MathHelper.RoundToNearest(System.Double,System.Double)">RoundToNearest(Double, Double)</h4>
  <div class="markdown level1 summary"><p>Round off a numeric value to the nearest of another value.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static double RoundToNearest(double number, double roundTo)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><span class="parametername">number</span></td>
        <td><p>Number to round off.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><span class="parametername">roundTo</span></td>
        <td><p>The number will be rounded to the nearest of this value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><p>The number rounded to the nearest value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=netDxf_MathHelper_Sign_System_Double_.md&amp;value=---%0Auid%3A%20netDxf.MathHelper.Sign(System.Double)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/DXF/MathHelper.cs/#L114">View Source</a>
  </span>
  <a id="netDxf_MathHelper_Sign_" data-uid="netDxf.MathHelper.Sign*"></a>
  <h4 id="netDxf_MathHelper_Sign_System_Double_" data-uid="netDxf.MathHelper.Sign(System.Double)">Sign(Double)</h4>
  <div class="markdown level1 summary"><p>Returns a value indicating the sign of a double-precision floating-point number.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static int Sign(double number)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><span class="parametername">number</span></td>
        <td><p>Double precision number.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><p>A number that indicates the sign of value.
Return value Meaning -1 value is less than zero.
0 value is equal to zero.
1 value is greater than zero.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 id="netDxf_MathHelper_Sign_System_Double__remarks">Remarks</h5>
  <div class="markdown level1 remarks"><p>This method will test for values of numbers very close to zero.</p>
</div>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=netDxf_MathHelper_Sign_System_Double_System_Double_.md&amp;value=---%0Auid%3A%20netDxf.MathHelper.Sign(System.Double%2CSystem.Double)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/DXF/MathHelper.cs/#L132">View Source</a>
  </span>
  <a id="netDxf_MathHelper_Sign_" data-uid="netDxf.MathHelper.Sign*"></a>
  <h4 id="netDxf_MathHelper_Sign_System_Double_System_Double_" data-uid="netDxf.MathHelper.Sign(System.Double,System.Double)">Sign(Double, Double)</h4>
  <div class="markdown level1 summary"><p>Returns a value indicating the sign of a double-precision floating-point number.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static int Sign(double number, double threshold)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><span class="parametername">number</span></td>
        <td><p>Double precision number.</p>
<param name="threshold">Tolerance.
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><span class="parametername">threshold</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><p>A number that indicates the sign of value.
Return value Meaning -1 value is less than zero.
0 value is equal to zero.
1 value is greater than zero.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 id="netDxf_MathHelper_Sign_System_Double_System_Double__remarks">Remarks</h5>
  <div class="markdown level1 remarks"><p>This method will test for values of numbers very close to zero.</p>
</div>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=netDxf_MathHelper_Swap__1___0____0__.md&amp;value=---%0Auid%3A%20netDxf.MathHelper.Swap%60%601(%60%600%40%2C%60%600%40)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/DXF/MathHelper.cs/#L557">View Source</a>
  </span>
  <a id="netDxf_MathHelper_Swap_" data-uid="netDxf.MathHelper.Swap*"></a>
  <h4 id="netDxf_MathHelper_Swap__1___0____0__" data-uid="netDxf.MathHelper.Swap``1(``0@,``0@)">Swap&lt;T&gt;(ref T, ref T)</h4>
  <div class="markdown level1 summary"><p>Swaps two variables.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static void Swap&lt;T&gt;(ref T obj1, ref T obj2)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">T</span></td>
        <td><span class="parametername">obj1</span></td>
        <td><p>An object of type T.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">T</span></td>
        <td><span class="parametername">obj2</span></td>
        <td><p>An object of type T.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">T</span></td>
        <td><p>Variable type.</p>
</td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=netDxf_MathHelper_Transform_netDxf_Vector2_System_Double_netDxf_CoordinateSystem_netDxf_CoordinateSystem_.md&amp;value=---%0Auid%3A%20netDxf.MathHelper.Transform(netDxf.Vector2%2CSystem.Double%2CnetDxf.CoordinateSystem%2CnetDxf.CoordinateSystem)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/DXF/MathHelper.cs/#L210">View Source</a>
  </span>
  <a id="netDxf_MathHelper_Transform_" data-uid="netDxf.MathHelper.Transform*"></a>
  <h4 id="netDxf_MathHelper_Transform_netDxf_Vector2_System_Double_netDxf_CoordinateSystem_netDxf_CoordinateSystem_" data-uid="netDxf.MathHelper.Transform(netDxf.Vector2,System.Double,netDxf.CoordinateSystem,netDxf.CoordinateSystem)">Transform(Vector2, Double, CoordinateSystem, CoordinateSystem)</h4>
  <div class="markdown level1 summary"><p>Transforms a point between coordinate systems.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static Vector2 Transform(Vector2 point, double rotation, CoordinateSystem from, CoordinateSystem to)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="netDxf.Vector2.html">Vector2</a></td>
        <td><span class="parametername">point</span></td>
        <td><p>Point to transform.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><span class="parametername">rotation</span></td>
        <td><p>Rotation angle in radians.</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="netDxf.CoordinateSystem.html">CoordinateSystem</a></td>
        <td><span class="parametername">from</span></td>
        <td><p>Point coordinate system.</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="netDxf.CoordinateSystem.html">CoordinateSystem</a></td>
        <td><span class="parametername">to</span></td>
        <td><p>Coordinate system of the transformed point.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="netDxf.Vector2.html">Vector2</a></td>
        <td><p>Transformed point.</p>
</td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=netDxf_MathHelper_Transform_netDxf_Vector3_netDxf_Vector3_netDxf_CoordinateSystem_netDxf_CoordinateSystem_.md&amp;value=---%0Auid%3A%20netDxf.MathHelper.Transform(netDxf.Vector3%2CnetDxf.Vector3%2CnetDxf.CoordinateSystem%2CnetDxf.CoordinateSystem)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/DXF/MathHelper.cs/#L279">View Source</a>
  </span>
  <a id="netDxf_MathHelper_Transform_" data-uid="netDxf.MathHelper.Transform*"></a>
  <h4 id="netDxf_MathHelper_Transform_netDxf_Vector3_netDxf_Vector3_netDxf_CoordinateSystem_netDxf_CoordinateSystem_" data-uid="netDxf.MathHelper.Transform(netDxf.Vector3,netDxf.Vector3,netDxf.CoordinateSystem,netDxf.CoordinateSystem)">Transform(Vector3, Vector3, CoordinateSystem, CoordinateSystem)</h4>
  <div class="markdown level1 summary"><p>Transforms a point between coordinate systems.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static Vector3 Transform(Vector3 point, Vector3 zAxis, CoordinateSystem from, CoordinateSystem to)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="netDxf.Vector3.html">Vector3</a></td>
        <td><span class="parametername">point</span></td>
        <td><p>Point to transform.</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="netDxf.Vector3.html">Vector3</a></td>
        <td><span class="parametername">zAxis</span></td>
        <td><p>Object normal vector.</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="netDxf.CoordinateSystem.html">CoordinateSystem</a></td>
        <td><span class="parametername">from</span></td>
        <td><p>Point coordinate system.</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="netDxf.CoordinateSystem.html">CoordinateSystem</a></td>
        <td><span class="parametername">to</span></td>
        <td><p>Coordinate system of the transformed point.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="netDxf.Vector3.html">Vector3</a></td>
        <td><p>Transformed point.</p>
</td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=netDxf_MathHelper_Transform_System_Collections_Generic_IEnumerable_netDxf_Vector2__System_Double_netDxf_CoordinateSystem_netDxf_CoordinateSystem_.md&amp;value=---%0Auid%3A%20netDxf.MathHelper.Transform(System.Collections.Generic.IEnumerable%7BnetDxf.Vector2%7D%2CSystem.Double%2CnetDxf.CoordinateSystem%2CnetDxf.CoordinateSystem)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/DXF/MathHelper.cs/#L237">View Source</a>
  </span>
  <a id="netDxf_MathHelper_Transform_" data-uid="netDxf.MathHelper.Transform*"></a>
  <h4 id="netDxf_MathHelper_Transform_System_Collections_Generic_IEnumerable_netDxf_Vector2__System_Double_netDxf_CoordinateSystem_netDxf_CoordinateSystem_" data-uid="netDxf.MathHelper.Transform(System.Collections.Generic.IEnumerable{netDxf.Vector2},System.Double,netDxf.CoordinateSystem,netDxf.CoordinateSystem)">Transform(IEnumerable&lt;Vector2&gt;, Double, CoordinateSystem, CoordinateSystem)</h4>
  <div class="markdown level1 summary"><p>Transforms a point list between coordinate systems.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static List&lt;Vector2&gt; Transform(IEnumerable&lt;Vector2&gt; points, double rotation, CoordinateSystem from, CoordinateSystem to)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Collections.Generic.IEnumerable</span>&lt;<a class="xref" href="netDxf.Vector2.html">Vector2</a>&gt;</td>
        <td><span class="parametername">points</span></td>
        <td><p>Point list to transform.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><span class="parametername">rotation</span></td>
        <td><p>Rotation angle in radians.</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="netDxf.CoordinateSystem.html">CoordinateSystem</a></td>
        <td><span class="parametername">from</span></td>
        <td><p>Point coordinate system.</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="netDxf.CoordinateSystem.html">CoordinateSystem</a></td>
        <td><span class="parametername">to</span></td>
        <td><p>Coordinate system of the transformed point.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Collections.Generic.List</span>&lt;<a class="xref" href="netDxf.Vector2.html">Vector2</a>&gt;</td>
        <td><p>Transformed point list.</p>
</td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=netDxf_MathHelper_Transform_System_Collections_Generic_IEnumerable_netDxf_Vector3__netDxf_Vector3_netDxf_CoordinateSystem_netDxf_CoordinateSystem_.md&amp;value=---%0Auid%3A%20netDxf.MathHelper.Transform(System.Collections.Generic.IEnumerable%7BnetDxf.Vector3%7D%2CnetDxf.Vector3%2CnetDxf.CoordinateSystem%2CnetDxf.CoordinateSystem)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/DXF/MathHelper.cs/#L306">View Source</a>
  </span>
  <a id="netDxf_MathHelper_Transform_" data-uid="netDxf.MathHelper.Transform*"></a>
  <h4 id="netDxf_MathHelper_Transform_System_Collections_Generic_IEnumerable_netDxf_Vector3__netDxf_Vector3_netDxf_CoordinateSystem_netDxf_CoordinateSystem_" data-uid="netDxf.MathHelper.Transform(System.Collections.Generic.IEnumerable{netDxf.Vector3},netDxf.Vector3,netDxf.CoordinateSystem,netDxf.CoordinateSystem)">Transform(IEnumerable&lt;Vector3&gt;, Vector3, CoordinateSystem, CoordinateSystem)</h4>
  <div class="markdown level1 summary"><p>Transforms a point list between coordinate systems.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static List&lt;Vector3&gt; Transform(IEnumerable&lt;Vector3&gt; points, Vector3 zAxis, CoordinateSystem from, CoordinateSystem to)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Collections.Generic.IEnumerable</span>&lt;<a class="xref" href="netDxf.Vector3.html">Vector3</a>&gt;</td>
        <td><span class="parametername">points</span></td>
        <td><p>Points to transform.</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="netDxf.Vector3.html">Vector3</a></td>
        <td><span class="parametername">zAxis</span></td>
        <td><p>Object normal vector.</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="netDxf.CoordinateSystem.html">CoordinateSystem</a></td>
        <td><span class="parametername">from</span></td>
        <td><p>Points coordinate system.</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="netDxf.CoordinateSystem.html">CoordinateSystem</a></td>
        <td><span class="parametername">to</span></td>
        <td><p>Coordinate system of the transformed points.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Collections.Generic.List</span>&lt;<a class="xref" href="netDxf.Vector3.html">Vector3</a>&gt;</td>
        <td><p>Transformed point list.</p>
</td>
      </tr>
    </tbody>
  </table>
</article>
          </div>
          
          <div class="hidden-sm col-md-2" role="complementary">
            <div class="sideaffix">
              <div class="contribution">
                <ul class="nav">
                  <li>
                    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=netDxf_MathHelper.md&amp;value=---%0Auid%3A%20netDxf.MathHelper%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A" class="contribution-link">Improve this Doc</a>
                  </li>
                  <li>
                    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/DXF/MathHelper.cs/#L31" class="contribution-link">View Source</a>
                  </li>
                </ul>
              </div>
              <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
                <h5>In This Article</h5>
                <div></div>
              </nav>
            </div>
          </div>
        </div>
      </div>
      
      <footer>
        <div class="grad-bottom"></div>
        <div class="footer">
          <div class="container">
            <span class="pull-right">
              <a href="#top">Back to top</a>
            </span>
            
            <span>Generated by <strong>DocFX</strong></span>
          </div>
        </div>
      </footer>
    </div>
    
    <script type="text/javascript" src="../styles/docfx.vendor.js"></script>
    <script type="text/javascript" src="../styles/docfx.js"></script>
    <script type="text/javascript" src="../styles/main.js"></script>
  </body>
</html>
